<div class="top-action">
<ul class="links">
	<li class="record-list"><a href="tags-list.php">List Tags</a></li>
</ul>
</div>
<div class="form-wrap">
<form id="tags-edit-form" name="tags-edit-form" method="post" action="tags-edit.php" enctype="multipart/form-data">
  <table class="data-editor">

<!-- file or image upload script/patch -->
<!--{*
	<tr class="{cycle values='A,B'} waring-overwrite">
		<td class="attribute">tags File/Image:</td>
		<td>
			<input type="file" name="tagsfile" id="tagsfile" value="" />
			<a href="{$tags.tagsfile}" target="preview">View current</a>
		</td>
	</tr>
*}-->

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Tag Name: <span class="required">*</span></td>
		<td>
			<input type="text" name="tags[tag_name]" value="{$tags.tag_name|utf8}" class="input" id="tags-tag_name" />
			<span class="form-hints">Unique tag name or combination of words</span>
		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Tag Plural: <span class="required">*</span></td>
		<td>
			<input type="text" name="tags[tag_plural]" value="{$tags.tag_plural|utf8}" class="input" id="tags-tag_plural" />
			<span class="form-hints">In the plural form (optional)</span>
		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Tag Singular: <span class="required">*</span></td>
		<td>
			<input type="text" name="tags[tag_singular]" value="{$tags.tag_singular|utf8}" class="input" id="tags-tag_singular" />
			<span class="form-hints">In the singular form (optional)</span>
		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Tag Icon: <span class="required">*</span></td>
		<td>
			<input type="file" name="tags[tag_icon]" value="{$tags.tag_icon|utf8}" class="input" id="tags-tag_icon" />
			<span class="form-hints">A tiny image file to visually explain this tag</span>
		</td>
	</tr>


    <tr>
      <td class="attribute">&nbsp;</td>
      <td>
		<input type="text" name="email" value="" class="vanish" />
		<input type="text" name="is_spam" value="" class="vanish" />
		<!--{* 100% sure, only spammers fill these fields, Leave blank. *}-->
		
		<input type="hidden" name="tag_id" value="{$tags.tag_id}" />
		
		<!-- This is different than system's protection code. This is related to particular ID. -->
		<input type="hidden" name="protection_code" value="{$tags.code}" />
		<input type="hidden" name="edit-action" value="Edit Tags" />
		<input type="submit" name="submit-button" class="submit" value="Save Changes" />
		<a href="{url::last_page('tags-list.php')}" class="button-cancel">Cancel</a>
	  </td>
    </tr>
  </table>
</form>
</div>
<!-- End of administrators Edit -->

<!-- Validation -->
<script type="text/javascript" src="js/validator/gen_validatorv31.js"></script>
{js src='validators/tags/edit.js' validator=true}

<!-- Rich Editor: Remove if not necessary. Or, use different .js files -->
<script type="text/javascript" src="js/tinymce/tiny_mce.js"></script>
<script type="text/javascript" src="js/tinymce-textareas.js"></script>

<!-- End of tags Edit -->
